package com.iyunwen.datatool.model.flow;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @description: 分页数据
 * @author: Zhu.Guodong
 * @create: 2020-03-17 15:59
 * @version:
 */
@Data
public class PageResult<T> implements Serializable {

    /**
     * 总数
     */
    private long total;

    /**
     * 记录行
     */
    private List<T> rows;

    public PageResult(List<T> list, long total) {
        this.rows = list;
        this.total = total;
    }
}
